Skip to content

chore: upgrade Java 17 to 21#170

Open
devin-ai-integration[bot] wants to merge 1 commit intoDevOpsfrom
devin/1777282267-upgrade-java-17-to-21
Open

chore: upgrade Java 17 to 21#170
devin-ai-integration[bot] wants to merge 1 commit intoDevOpsfrom
devin/1777282267-upgrade-java-17-to-21

Conversation

@devin-ai-integration
Copy link
Copy Markdown

Summary

Upgrades the application from Java 17 to Java 21 across build configuration, Docker images, and compiler plugin settings.

Changes

  • pom.xml: Updated java.version property from 17 to 21; upgraded maven-compiler-plugin from 3.8.0 to 3.11.0 with source/target set to 21
  • Dockerfile: Updated build stage from maven:3.8.3-openjdk-17 to maven:3.9-eclipse-temurin-21; updated runtime stage from openjdk:17-alpine to eclipse-temurin:21-jre-alpine

Review & Testing Checklist for Human

  • Build the Docker image locally: docker build -t bankapp:java21 .
  • Run the container with docker-compose and verify the app starts on port 8080
  • Verify the /actuator/health endpoint responds successfully
  • Confirm the Jenkinsfile CI pipeline builds without errors

Notes

  • Spring Boot 3.3.3 fully supports Java 21
  • Eclipse Temurin images are used instead of openjdk (which has limited Java 21 support)

Link to Devin session: https://app.devin.ai/sessions/6573fec3fb334d5bb12de0b6d87ce983
Requested by: @joao-cognition

- Update java.version property to 21 in pom.xml
- Update maven-compiler-plugin to 3.11.0 with source/target 21
- Update Dockerfile build stage to maven:3.9-eclipse-temurin-21
- Update Dockerfile runtime stage to eclipse-temurin:21-jre-alpine

Co-Authored-By: Joao Esteves <joao.esteves@cognition.ai>
@devin-ai-integration
Copy link
Copy Markdown
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants